package com.spring.gop.proj.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/*")
public class IndexController {

	@RequestMapping
	public String index() {
		return "redirect:/main";
	}
	
	@RequestMapping(value="/profile/main")
	public void main(Model model) {

		model.addAttribute("pageIdx", 3);
	}
}
